FROM java:11
MAINTAINER xuxueli

ENV PARAMS="--spring.profiles.active=dev"

ENV TZ=PRC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

ADD target/xxl-job-admin.jar /job-admin.jar

ENTRYPOINT ["sh","-c","java -jar $JAVA_OPTS /job-admin.jar $PARAMS"]